import Layout from "@/layout/index.vue";
import { createNameComponent } from "../createNode";
import { House } from "@element-plus/icons-vue";

const route = [
  {
    path: "/",
    component: Layout,
    redirect: "/dashboard",
    meta: { title: "工艺品商城", icon: House },
    children: [
      {
        path: "dashboard",
        component: createNameComponent(() =>
          import("@/views/main/dashboard/index.vue")
        ),
        meta: { title: "首页", icon: House, hideClose: false },
      },
    ],
  },
];

export default route;
